package com.doublecheck.project.client;

import java.util.ArrayList;

public  class LineChart_Dataset implements Dataset {

	private ArrayList<Item> dataset;
	
	/*Constructor*/
	public LineChart_Dataset(){
		dataset = new ArrayList<Item>();
	}	
	/*add method for an item*/
	public void addItem(String cate, Double val){
		Item item = new Item(cate,val);
		this.dataset.add(item);
	}
	/*add method for an item*/
	public void addItem(String cate, Double val0, Double val1){
		Item item = new Item(cate, val0, val1);
		this.dataset.add(item);
	}
	/*add method for an item*/
	public void addItem(String cate, Double val0, Double val1, Double val2){
		Item item = new Item(cate,val0, val1, val2);
		this.dataset.add(item);
	}
	public void addItem(String cate, Double val0, Double val1, Double val2, Double val3){
		Item item = new Item(cate,val0, val1, val2, val3);
		this.dataset.add(item);
	}
	public void addItem(String cate, Double val0, Double val1, Double val2, Double val3, Double val4){
		Item item = new Item(cate,val0, val1, val2, val3, val4);
		this.dataset.add(item);
	}	
	/*get dataset*/
	public ArrayList<Item> getDataset(){
		return dataset;
	}		
}
